home *** CD-ROM | disk | FTP | other *** search
/ Champak 52 / Volume 52 - JOGO DISK .iso / Games / sandwichcooking.swf / scripts / DefineButton2_455 / BUTTONCONDACTION on(release).as < prev    next >
Text File  |  2007-09-27  |  813b  |  38 lines

  1. on(release){
  2.    this.stopDrag();
  3.    this.gotoAndStop(1);
  4.    if(this.hitTest(_root.fry.fdrop))
  5.    {
  6.       _root.txtF._visible = true;
  7.       _root.txtF.play();
  8.       this._x = targetX;
  9.       this._y = targetY;
  10.    }
  11.    if(this.hitTest(_root.chop.edrop))
  12.    {
  13.       _root.txtC._visible = true;
  14.       _root.txtC.play();
  15.       this._x = targetX;
  16.       this._y = targetY;
  17.    }
  18.    if(_root.chr._currentframe == 1)
  19.    {
  20.       _root.txtX._visible = true;
  21.       _root.txtX.play();
  22.       _root.chr.gotoAndPlay(11);
  23.       this._x = targetX;
  24.       this._y = targetY;
  25.    }
  26.    else if(this.hitTest(_root.chr.idrop))
  27.    {
  28.       _root.chr.peanutbutter._visible = true;
  29.       this._x = targetX;
  30.       this._y = targetY;
  31.    }
  32.    else
  33.    {
  34.       this._x = targetX;
  35.       this._y = targetY;
  36.    }
  37. }
  38.